class SubsListEntity {
  String? expertId;
  String? endTime;
  List<SubsPrices>? subsPrices;
  double? hit;
  String? info;
  String? logo;
  String? name;
  int? planCount;
  double? profit;
  int? profitM;
  String? renew;
  int? subs;
  int? subsCnt;
  double? subsDay;
  double? subsDay15;
  String? subsDayTime;
  double? subsDiscount;
  String? subsEndTime;
  double? subsMonth;
  String? subsPrice;
  double? subsWeek;
  String? tags;
  int? total;
  int? valid;
  String? validTotal;
  int? valueM;
  int? valueN;

  SubsListEntity(
      {this.expertId,
        this.endTime,
        this.subsPrices,
        this.hit,
        this.info,
        this.logo,
        this.name,
        this.planCount,
        this.profit,
        this.profitM,
        this.renew,
        this.subs,
        this.subsCnt,
        this.subsDay,
        this.subsDay15,
        this.subsDayTime,
        this.subsDiscount,
        this.subsEndTime,
        this.subsMonth,
        this.subsPrice,
        this.subsWeek,
        this.tags,
        this.total,
        this.valid,
        this.validTotal,
        this.valueM,
        this.valueN});

  SubsListEntity.fromJson(Map<String, dynamic> json) {
    expertId = json['expertId'];
    endTime = json['endTime'];
    if (json['ideaExpertSubs'] != null) {
      subsPrices = <SubsPrices>[];
      json['ideaExpertSubs'].forEach((v) {
        subsPrices!.add(new SubsPrices.fromJson(v));
      });
    }
    hit = json['hit'];
    info = json['info'];
    logo = json['logo'];
    name = json['name'];
    planCount = json['planCount'];
    profit = json['profit'];
    profitM = json['profitM'];
    renew = json['renew'];
    subs = json['subs'];
    subsCnt = json['subsCnt'];
    subsDay = json['subsDay'];
    subsDay15 = json['subsDay15'];
    subsDayTime = json['subsDayTime'];
    subsDiscount = json['subsDiscount'];
    subsEndTime = json['subsEndTime'];
    subsMonth = json['subsMonth'];
    subsPrice = json['subsPrice'];
    subsWeek = json['subsWeek'];
    tags = json['tags'];
    total = json['total'];
    valid = json['valid'];
    validTotal = json['validTotal'];
    valueM = json['valueM'];
    valueN = json['valueN'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['expertId'] = this.expertId;
    data['endTime'] = this.endTime;
    if (this.subsPrices != null) {
      data['ideaExpertSubs'] =
          this.subsPrices!.map((v) => v.toJson()).toList();
    }
    data['hit'] = this.hit;
    data['info'] = this.info;
    data['logo'] = this.logo;
    data['name'] = this.name;
    data['planCount'] = this.planCount;
    data['profit'] = this.profit;
    data['profitM'] = this.profitM;
    data['renew'] = this.renew;
    data['subs'] = this.subs;
    data['subsCnt'] = this.subsCnt;
    data['subsDay'] = this.subsDay;
    data['subsDay15'] = this.subsDay15;
    data['subsDayTime'] = this.subsDayTime;
    data['subsDiscount'] = this.subsDiscount;
    data['subsEndTime'] = this.subsEndTime;
    data['subsMonth'] = this.subsMonth;
    data['subsPrice'] = this.subsPrice;
    data['subsWeek'] = this.subsWeek;
    data['tags'] = this.tags;
    data['total'] = this.total;
    data['valid'] = this.valid;
    data['validTotal'] = this.validTotal;
    data['valueM'] = this.valueM;
    data['valueN'] = this.valueN;
    return data;
  }
}

class SubsPrices {
  String? min;
  String? needPrices;
  String? prices;
  String? timeDay;
  int? type;

  SubsPrices({this.min, this.needPrices, this.prices, this.timeDay, this.type});

  SubsPrices.fromJson(Map<String, dynamic> json) {
    min = json['min'];
    needPrices = json['needPrices'];
    prices = json['prices'];
    timeDay = json['timeDay'];
    type = json['type'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['min'] = this.min;
    data['needPrices'] = this.needPrices;
    data['prices'] = this.prices;
    data['timeDay'] = this.timeDay;
    data['type'] = this.type;
    return data;
  }
}
